package net.rock.eshop.entity;

import lombok.Data;

@Data
public class Book {
    private int id;
    private String title;
    private String author;
    private String publisher;
    private int categoryId;
    private double price;
    private String imgUrl;

    public Book(int id, String title, String author, String publisher, int categoryId, double price, String imgUrl) {
        this.id = id;
        this.title = title;
        this.author = author;
        this.publisher = publisher;
        this.categoryId = categoryId;
        this.price = price;
        this.imgUrl = imgUrl;
    }

    public Book() {
    }
}
